package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Setter
@Getter
public class NewsComment extends BaseDomain{
    public static final int STATE_DISABLE = -1;//禁用
    public static final int STATE_NOMAL = 0;//普通
    public static final int STATE_HOT = 1;//推荐

    private User user;//评论人

    @JsonFormat(pattern = "y-M-d",timezone = "GMT+8")
    @DateTimeFormat(pattern = "y-M-d")
    private Date createTime;//评论时间

    private String content;//评论内容

    private String imgUrls;//评论图片

    private Integer starNum;//星星数量

    private News news;//日报

    private Integer state;//状态

    @JsonFormat(pattern = "y-M-d",timezone = "GMT+8")
    @DateTimeFormat(pattern = "y-M-d")
    private Date commendTime;//头条推荐时间

}